#include "CameraModel.h"


bool CameraModel::scrollDown(){
	if(this->dz <= 3)return false;
	if(this->dz > 1){
		this->dy+=0.5;
		this->dz-=0.5;
		this->pushMovement(Vec3(dbaseX,(dy < 3.5)?dy:3.5,dz));
		return true;
	}
	return false;
}

bool CameraModel::scrollUp(){
	if(this->dz < 10){
		this->dy-=0.5;
		this->dz+=0.5;
		this->pushMovement(Vec3(dbaseX,(dy < 3.5)?dy:3.5,dz));
		return true;
	}
	return false;
}